-- GENERATED SPELL FOR [Nighthaven Defender] --


function spell0_15495(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(22121,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15495', 555, 1)
end

function Sorts_15495(pUnit, Event)
local choix_sorts_15495 = math.random(0, 0)
if choix_sorts_15495 == 0 then
pUnit:RegisterEvent('spell0_15495', 1, 1)
end
end

function mob15495_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15495', math.random(1500, 3000), 1)
end

function mob15495_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15495_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15495_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15495, 1, 'mob15495_Action')
RegisterUnitEvent(15495, 2, 'mob15495_Leave')
RegisterUnitEvent(15495, 3, 'mob15495_Kill')
RegisterUnitEvent(15495, 4, 'mob15495_Die')
